package com.Example.Model.SupplyType;

import com.alibaba.fastjson.annotation.JSONField;

public class ShareRatio {
    @JSONField(ordinal = 1)
    private int from;
    @JSONField(ordinal = 2)
    private int to;
    @JSONField(ordinal = 3)
    private double ratio;
    @JSONField(ordinal = 4)
    private int fixed;

    public ShareRatio(int from, int to, double ratio, int fixed) {
        this.from = from;
        this.to = to;
        this.ratio = ratio;
        this.fixed = fixed;
    }

    public void setFrom(int from) {
        this.from = from;
    }

    public int getFrom() {
        return from;
    }

    public int getTo() {
        return to;
    }

    public void setTo(int to) {
        this.to = to;
    }

    public double getRatio() {
        return ratio;
    }

    public void setRatio(double ratio) {
        this.ratio = ratio;
    }

    public int getFixed() {
        return fixed;
    }

    public void setFixed(int fixed) {
        this.fixed = fixed;
    }

    @Override
    public String toString() {
        return "ShareRatio{" +
                "from=" + from +
                ", to=" + to +
                ", ratio=" + ratio +
                ", fixed=" + fixed +
                '}';
    }
}
